//
//  YBNetBase.m
//  shortvideoplay
//
//  Created by tikeios_002 on 2024/6/12.
//

#import "YBNetBase.h"
#import "YBNetworking.h"
//static NSString * request_url = @"https://tikevideos.ltd/v1/api/";
//static NSString * request_url = @"http://39.98.47.163:8070/v2-api/";
static NSString * request_url = @"http://v.qijixiong.com/v2-api/";

@implementation YBNetBase

#pragma mark 初始化请求
+(void)initAppRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"init"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频分类请求
+(void)videoTypeListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"myVideoType/index"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)loginRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"tikeLogin"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)sendSMSRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"overseasUserSmsCode"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)recommendedVideosRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"homeVideoRec"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 关注视频
+(void)followVideosRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"followVideoList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 为你推荐关注用户
+(void)recommendFollowRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"recommendFollow"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 评论列表
+(void)commentParentplListVideosRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"parentplList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 下级评论列表
+(void)commentSonplListVideosRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"sonplList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 新消息
+(void)messegeNewsTotalRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"newsTotal"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 拉黑列表
+(void)userBlackListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"blacklist"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 拉黑用户
+(void)userBlackUserRequest:(NSMutableDictionary *)dic userid:(id)userid target:(id)target successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"pullblack"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
        if(code == 200){
            //添加黑名单
            [[QZDataUpdate share] blockUser:userid excludeTarget:target];
        }
    }];
}
#pragma mark 取消拉黑用户
+(void)userCloseBlackUserRequest:(NSMutableDictionary *)dic userid:(id)userid target:(id)target successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"cancelblack"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
        if(code == 200){
            //取消拉黑
            [[QZDataUpdate share] cancelBlockUser:userid excludeTarget:target];
        }
    }];
}
#pragma mark 退出登录
+(void)userLogoutRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"user/logout"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 注销
+(void)userLogoffRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"user/logoff"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 头像
+(void)userEditFaceRequest:(NSMutableDictionary *)dic fileData:(NSData *)fileData successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postUploadFileWithUrl:[request_url stringByAppendingString:@"editFace"] Dic:dic fileData:fileData Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 背影图片
+(void)userEditbackgroudRequest:(NSMutableDictionary *)dic fileData:(NSData *)fileData successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postUploadFileWithUrl:[request_url stringByAppendingString:@"editBackImage"] Dic:dic fileData:fileData Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)userEditInfoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editInfo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)editBirthdayRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editBirthday"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}

+(void)userEditSexRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editSex"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)userCityAreaRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"getArea"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 设置地区
+(void)userEditCitySetAreaRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editArea"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 设置生日
+(void)userEditBirthdayRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editBirthday"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 关注列表
+(void)userFollowListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"followV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 粉丝列表
+(void)userFansListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"fans"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 关注用户
+(void)userFollowUserRequest:(NSMutableDictionary *)dic target:(id)target successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"userFollow"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
        if(code == 200){
            [[QZDataUpdate share] updateFollow:data[@"mid"] isFollow:data[@"isfollow"] excludeTarget:target];
        }
    }];
}
#pragma mark 历史观看
+(void)historyVideoListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"videoPlayList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 历史清除
+(void)historyVideoRemoveRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"clearVideoPlay"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 已上传视频的数量
+(void)preCreateVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"preCreateVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 上传视频
+(void)createVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"createVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 意见反馈历史列表
+(void)feedBackHistoryListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"feedbackList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 意见反馈
+(void)feedBackAddRequest:(NSMutableDictionary *)dic images:(NSArray *)images successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postFeedBackUploadUrl:[request_url stringByAppendingString:@"addFeedback"] Dic:dic images:images Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 消息详情列表
+(void)newsTypeListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"newsListV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 发布话题列表
+(void)uploadVideoLabelsRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"videoLabels"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 删除消息
+(void)delNewsRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"delNews"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 请求个的所有视频
+(void)userVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"videoinfo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 举报类型请求
+(void)reportTypeRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"reportType"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 举报提交
+(void)reportTypeAddRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"addReport"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 用户信息
+(void)userhomeRequest:(NSMutableDictionary *)dic isMy:(BOOL)isMy successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"userhome"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)tikeRankRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"incomeRankV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 我的作品
+(void)userVideoListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"userVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 我喜欢的作品
+(void)userVideoLikeListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"userLikeVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 我收藏的作品
+(void)userVideoCollectsListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"user/collects"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频点赞
+(void)videoLikeRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"zan"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频收藏
+(void)videoCollectsRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"video/collect"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频送花
+(void)videoFlowerRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"video/flower/give"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 真实播放地址
+(void)getStreamVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"doge/getStream"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 推荐token
+(void)saveDeviceTokenRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"saveDeviceToken"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频类型选择后的列表
+(void)videoTypeSelectRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"videoSelect"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 话题视频
+(void)videoLabelsSelectRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"labelsVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频不感兴趣
+(void)videoSaveLoseInterestRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"saveLoseInterest"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频删除
+(void)videoDelVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"delVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark app评价
+(void)appCommentRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"appComment"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 视频回复
+(void)commentplVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"plVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 评论回复
+(void)commentplCommentRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"plComment"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 修改手机号码
+(void)editPhoneRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editPhoneRequest"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 修改隐私
+(void)editPermissionRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editPermission"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钱包
+(void)memberAccountMessageRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/account"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钱包提现金额配置
+(void)memberAccountMoneyListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"moneyList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钱包提现明细
+(void)memberAccountApplyListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/walletLogV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钱包提现统计
+(void)memberMonthAccountApplyListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/walletMonthV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 金币明细
+(void)taleCoinMonthRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/walletLogV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark VIP价格
+(void)memberAccountVipListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"vipList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 获取订单号
+(void)memberAccountOrderCreateRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"orderCreate"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 认证
+(void)memberAccountAddAttestationRequest:(NSMutableDictionary *)dic shenfengzhengFrontImage:(NSData *)frontImageData shenfengzhengBackImage:(NSData *)backImageData fuzhuImages:(NSArray *)images successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postCreatorInfoUrl:[request_url stringByAppendingString:@"addAttestation"] Dic:dic shenfengzhengFrontImage:frontImageData shenfengzhengBackImage:backImageData fuzhuImages:images Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 购买校验
+(void)memberAccountBuyAppleRequest:(NSMutableDictionary *)dic url:(NSString *)url successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:url] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 创作者
+(void)memberCreatorHomeRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"creatorHomeV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 添加提现账号
+(void)addAccountRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"addAccount"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 删除提现账号
+(void)delAccountRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"delAccount"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}

#pragma mark 编辑提现账号
+(void)editAccountRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"editAccount"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 提现
+(void)cashAccountRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/cash"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钻石
+(void)translateCoinPriceRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"translateCoinPrice"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 钻石订单
+(void)orderCreateTBeanRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"orderCreateTBean"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
+(void)commentFanYiRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"commentFanYi"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 预估收益更新
+(void)creatorHomeMoneyChangeRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"creatorHomeV2"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分参数
+(void)activityTaskWatchVideoInfoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"activityTask/watchVideoInfo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分提交
+(void)activityTaskWatchVideoRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"activityTask/watchVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分任务表
+(void)activityTaskListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"activityTask/getList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分明细
+(void)integrationListNumberRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/integrationList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分现金明细
+(void)integrationWalletListNumberRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/integrationWalletList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分提现金额
+(void)integrationWalletListMoneyRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/integration"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 积分提现
+(void)integrationWalletListCashRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"memberAccount/integrationCash"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 广告激励
+(void)integrationwatchAdvRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"activityTask/watchAdv"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 分享积分
+(void)integrationwatchShareRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"videoShare"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 签到看广告得积分
+(void)signAndWatchAdvRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"signAndWatchAdv"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}

#pragma mark 签到
+(void)integrationWalletListdoSignInRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"activityTask/doSignIn"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
//购买视频
+(void)buyVideoWalletListdoSignInRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"buyVideo"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
//热门话题
+(void)hotLabelListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"hotLabel"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 增加播放量
+(void)incPvRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"incPv"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 增加播放历史
+(void)addHisPlayRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"addVideoPlay"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 活跃时长提交
+(void)activeRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"active"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 邀请码提交
+(void)bindInviteRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"bindInvite"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
#pragma mark 邀请列表
+(void)inviteListListRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"inviteList"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
//视频云临时token
+(void)dogeVodTmpTokenRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"doge/vodTmpToken"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
//云存储临时token
+(void)dogeOssTmpTokenRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"doge/ossTmpToken"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
//获取付费参数
+(void)getVideoPriceConfigRequest:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:@"getVideoPriceConfig"] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}

#pragma mark 传入url
+(void)requestNotUrl:(NSString *)url sendDic:(NSMutableDictionary *)dic successBlock:(void (^)(NSDictionary *data,NSInteger code,NSString *msg))successBlock{
    [YBNetworking postWithUrl:[request_url stringByAppendingString:url] Dic:dic Suc:^(NSDictionary *data, NSInteger code, NSString *msg) {
        successBlock(data,code,msg);
    }];
}
@end
